import request from '@/utils/request'

// 查询AI模型/算法库列表
export function listModelLibrary(query) {
  return request({
    url: '/ai/modelLibrary/list',
    method: 'get',
    params: query
  })
}

// 查询AI模型/算法库详细
export function getModelLibrary(modelId) {
  return request({
    url: '/ai/modelLibrary/' + modelId,
    method: 'get'
  })
}

// 新增AI模型/算法库
export function addModelLibrary(data) {
  return request({
    url: '/ai/modelLibrary',
    method: 'post',
    data: data
  })
}

// 修改AI模型/算法库
export function updateModelLibrary(data) {
  return request({
    url: '/ai/modelLibrary',
    method: 'put',
    data: data
  })
}

// 删除AI模型/算法库
export function delModelLibrary(modelId) {
  return request({
    url: '/ai/modelLibrary/' + modelId,
    method: 'delete'
  })
}
